﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CMPPProtocol;

namespace CMPPCore
{
    public enum EventType
    {
        /// <summary>
        /// 开始提交短信
        /// </summary>
        BeginSubmit,
        /// <summary>
        /// 提交短信成功
        /// </summary>
        SubmitSuccess,
        /// <summary>
        /// 提交短信失败
        /// </summary>
        SubmitError,
        /// <summary>
        /// 接收到短信
        /// </summary>
        Deliver,
        /// <summary>
        /// 接收到状态报告
        /// </summary>
        Report,
        /// <summary>
        /// 开始取消短信
        /// </summary>
        BeginCancel,
        /// <summary>
        /// 取消短信成功
        /// </summary>
        CancelSuccess,
        /// <summary>
        /// 取消短信失败
        /// </summary>
        CancelError,
        /// <summary>
        /// 系统消息
        /// </summary>
        System
    }

    public class CommandEventArg:EventArgs
    {
        /// <summary>
        /// 事件类型
        /// </summary>
        public EventType EventType { get; set; }
        /// <summary>
        /// 事件数据
        /// </summary>
        public object Data { get; set; }
        /// <summary>
        /// 产生事件的客户端
        /// </summary>
        public SMSClient Client { get; set; }
        /// <summary>
        /// 发生时间
        /// </summary>
        public DateTime DateTime { get; set; }
    }
}
